package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 部门负责人详情
 * </p>
 *
 * @author hpiggy
 * @since 2025-04-28
 */
@Data
@TableName("organization_department_principal")
@ApiModel(value = "OrganizationDepartmentPrincipal对象", description = "部门负责人详情")
public class OrganizationDepartmentPrincipal implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("所属校区")
    private Long schoolId;

    @ApiModelProperty("校区或者部门id")
    private Long organizationId;

    @ApiModelProperty("员工id")
    private Long staffId;

    @ApiModelProperty("开始时间")
    private LocalDate startDate;

    @ApiModelProperty("截止时间")
    private LocalDate endDate;

    @ApiModelProperty("开始课次")
    private Integer startLessonNum;

    @ApiModelProperty("截止课次")
    private Integer endLessonNum;

    @ApiModelProperty("是否当前负责人，1是，0否")
    private Integer isCurrent;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @ApiModelProperty("负责人")
    @TableField(exist = false)
    private String staffName;

    @ApiModelProperty("部门名称")
    @TableField(exist = false)
    private String departmentName;

    @ApiModelProperty("学校")
    @TableField(exist = false)
    private String schoolName;

    @ApiModelProperty("绿的数量")
    @TableField(exist = false)
    private String greenCount;

    @ApiModelProperty("黄的数量")
    @TableField(exist = false)
    private String yellowCount;

    @ApiModelProperty("红的数量")
    @TableField(exist = false)
    private String redCount;

    @ApiModelProperty("基准值")
    @TableField(exist = false)
    private String referenceValue;

    @ApiModelProperty("项目")
    @TableField(exist = false)
    private String projectsName;

    @ApiModelProperty("课次")
    @TableField(exist = false)
    private String lessonNum;

    @ApiModelProperty("数值")
    @TableField(exist = false)
    private String radeNum;


}
